package cn.blog;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class BlogAdminApplication {

	public static void main(String[] args) {
		SpringApplication.run(BlogAdminApplication.class, args);
	}

	@RequestMapping("/")
	public String hello(@RequestParam(defaultValue = "") String name) {
		return "hello,admin " + name;
	}
	/**
	 * 包名：xxxyyyzzz 类名、接口名：XxxYyyZzz 变量名、方法名：xxxYyyZzz 常量名：XXX_YYY_ZZZ
	 */
}
